import { formConfig } from '@/assembly/config'
import component from './index.vue'

const config = {
  type: 'title',
  label: '标题',
  isLabel:false,
  component,
  order: 1,
  id: Date.now(),
  colSpan: 24,
  formConfig: {
    ...formConfig,
    formList: [
      {
        label: '标题',
        type: 'input',
        key: 'title',
        default: '标题',
        span: 24,
      },
      {
        type: 'slider',
        label: '标签宽度',
        key: 'labelWidth',
        default: 24,
        min: 1,
        max: 24,
        span: 24,
      },
      {
        label: '字体大小',
        type: 'input',
        key: 'fontSize',
        default: '18',
        span: 24,
      },
      {
        label: '标题位置',
        type: 'radio',
        key: 'textAlign',
        default: 'left',
        span: 24,
        checkList: [
          { label: '靠左', value: 'left' },
          { label: '居中', value: 'center' },
          { label: '靠右', value: 'right' },
        ]
      },
      {
        type: 'switch',
        label: '是否加粗',
        key: 'fontWeight',
        default: 700,
        span: 24,
        activeValue: 700,
        inactiveValue: 500
      },
    ]
  },
}

export default config